﻿@model NewRen.Models.News
@{
    ViewBag.Title = Model.Title;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="banner">
    <div class="container">
        <div class="logo">
            <img src="~/Images/logo.jpg" width="120" height="60">
        </div>
        <div class="search-block">
            <form class="search" action="/Search/Index" style="float:left">
                <input type="text" placeholder="请输入要检索的牛人、牛棚" name="key" class="search-query" />
                <input type="submit" value="搜索" class="search-submit" />
            </form>
        </div>
        <div class="clr"></div>
    </div>
</div>
<div class="sub-menu">
    <div class="container sub-menu-a">
        <a href="/News/Index">新闻</a>
    </div>
</div>
<div class="container top30 bottom-3">
    <div class="col-8">
        <div class="news-title">@Model.Title</div>
        <div class="news-info">
            <span class="date">发布时间：@Model.DateTime.ToString("yyyy-MM-dd HH:mm:ss") </span>
            <span class="view">访问量：@Model.Browses</span>
            <span class="view">来源：<a href="@Model.Url" target="_blank">@Model.Source</a></span>
        </div>
        <div class="desc">@Html.Sanitized(Model.Content)</div>
    </div>
    <div class="col-3 news-hot-box">
        <div class="head">热门新闻</div>
        <div class="body">
            @foreach (var item in ViewBag.HotNews)
            {
                <a href="/News/Show/@item.ID" class="item">@item.Title</a>
            }
        </div>
    </div>
    <div class="clr"></div>
</div>

